package com.android.meige.model.group;

import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * Created by Administrator on 2017/7/11.
 */

public abstract class SeaAmoyListDataCallback extends Callback<SeaAmoyListData> {

    @Override
    public SeaAmoyListData parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        SeaAmoyListData data = new Gson().fromJson(string, SeaAmoyListData.class);
        return data;
    }
}